package com.yonyou.pmclouds.project.processor;

import com.yonyou.pmclouds.basecom.bp.processor.SingleProcessor;
import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.procedure.mapper.ProceprojectMapper;
import com.yonyou.pmclouds.project.entity.ProjectVO;

public class ProceProjectDeleteProcessor implements SingleProcessor<ProjectVO> {

    private ProceprojectMapper proceprojectMapper;
    public ProceProjectDeleteProcessor(ProceprojectMapper proceprojectMapper){
        this.proceprojectMapper=proceprojectMapper;
    }
    @Override
    public void process(ProjectVO vo, ProjectVO orig) throws BusinessException {
        proceprojectMapper.deleteByProjectId(vo.getPkProject());
    }
}
